﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Unijovem IBVG - @ViewBag.Title</title>
    <link rel="icon" type="image/vnd.microsoft.icon" href="../../Content/Layout/LogoPreto.png" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui-1.8.16.custom.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src ="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
    <script src ="@Url.Content("~/Scripts/fundo.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.corner.js")" type="text/javascript"></script>
    <meta property="og:url" content="@Request.Url.AbsoluteUri" />
    <meta property="og:site_name" content="Unijovem IBVG" />
    <meta property="fb:admins" content="100001578625133" />
    <meta content="@ViewBag.ShareTitle" name="title" />
    <meta content="@ViewBag.ShareDescription" name="description" />
    <meta property="og:title" content="@ViewBag.ShareTitle" />
    <meta property="og:type" content="activity" />
    <meta property="og:locale" content="pt_BR" />
    <meta property="og:description" content="@ViewBag.ShareDescription" />
    <meta property="og:image" content="@string.Concat(ViewBag.ShareImage ?? Request.Url.AbsoluteUri.Replace(Request.Url.AbsolutePath, "/Content/Layout/Logo.png"), string.Empty)" />
    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-28185709-1']);
        _gaq.push(['_trackPageview']);

        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

        function AtualizarUltimaVezOnline() {
            $.ajax({
                url: '/Pessoa/AtualizarUltimaVezOnline',
                type: "GET",
                success: function (result) {
                    
                }
            });
        };

        $(document).ready(function () {
            AtualizarUltimaVezOnline();
            window.setInterval(AtualizarUltimaVezOnline, 150000);

            $('textarea[maxlength]').keyup(function () {
                var limit = parseInt($(this).attr('maxlength'));
                var text = $(this).val();
                var chars = text.length;

                if (chars > limit) {
                    var new_text = text.substr(0, limit);
                    $(this).val(new_text);
                }
            });

            $('input.botaoVermelho').each(function (index) {
                $(this).corner("round 10px");
                $(this).mouseover(function () {
                    $(this).removeClass('botaoVermelho');
                    $(this).addClass('botaoVermelhoOver');
                });

                $(this).mouseout(function () {
                    $(this).addClass('botaoVermelho');
                    $(this).removeClass('botaoVermelhoOver');
                });
            });

            $('a.botaoVermelho').each(function (index) {
                $(this).corner("round 10px");
                //                $(this).mouseover(function () {
                //                    $(this).removeClass('botaoVermelho');
                //                    $(this).addClass('botaoVermelhoOver');
                //                });

                //                $(this).mouseout(function () {
                //                    $(this).addClass('botaoVermelho');
                //                    $(this).removeClass('botaoVermelhoOver');
                //                });
            });

            $('input.botaoBranco').each(function (index) {
                $(this).corner("round 10px");
                $(this).mouseover(function () {
                    $(this).removeClass('botaoBranco');
                    $(this).addClass('botaoBrancoOver');
                });

                $(this).mouseout(function () {
                    $(this).addClass('botaoBranco');
                    $(this).removeClass('botaoBrancoOver');
                });
            });
        });  
    </script>
</head>
<body id="body">
    <div class="page">
        <div id="header">
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <div id="menucontainer">
                <ul class="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("Identidade", "QuemSomos", "Home")</li>
                    <li>@Html.ActionLink("Social", "Visualizar", "Evento")</li>
                    <li>@Html.ActionLink("Mídia", "Visualizar", "Musica")</li>
                    <li>@Html.ActionLink("Chega mais", "Index", "Noticia")</li>
                    <li>@Html.ActionLink("Devocional", "DetalhesLeitura", "Devocional")</li>
                    @*<li>@Html.ActionLink("O Desafio", "Especial", "Home")</li>*@
                    <li>@Html.ActionLink("Leitura Diária", "Diaria", "LeituraBiblica")</li>                    
                    <li>@Html.ActionLink("Fale conosco", "Criar", "FaleConosco")</li>
                    @*<li>@Html.ActionLink("Leitura Bíblica", "Index", "LeituraBiblica")</li>
                    <li>@Html.ActionLink("Enquete", "Index", "Enquete")</li>
                    <li>@Html.ActionLink("Fale Conosco", "Criar", "FaleConosco")</li>*@
                </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()
        </div>
        <div style="clear: both;">
        </div>
        <br />
        <br />
    </div>
</body>
</html>
